<?php 
session_start();
if(strlen($_SESSION["u_name"])== 0)
{
 header("Location:index.php");
}
include 'Classes/MyClass.php';
$objMyCass = new MyClass();
$userdetails = array();
$userdetails = $objMyCass->FetchUserRecords($_SESSION["user_id"]);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Profile Evalution</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script src="js/jquery-1.4.2.js" type="text/javascript" language="javascript"></script>
<script src="js/ajax.js" type="text/javascript" language="javascript"></script>
<script src="js/tab-view.js" type="text/javascript" language="javascript"></script> 
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="css/tab-view.css" rel="stylesheet" type="text/css" />
<link href="cssbuttons.css" rel="stylesheet" type="text/css">
<link href="skins/sample/sample.css" rel="stylesheet" type="text/css">

<link rel="stylesheet" href="themes/base/jquery.ui.all.css">

	<script src="ui/jquery.ui.core.js"></script>
	<script src="ui/jquery.ui.widget.js"></script>
	<script src="ui/jquery.ui.datepicker.js"></script>
	<link rel="stylesheet" href="demos.css">
	<script>
	$(function() {
		$( "#datepicker" ).datepicker({
			changeMonth: true,
			changeYear: true
		});
	});
	</script>

</head>
<body>


<!-- container -->
<div id="container">
	<div class="center">
		<!-- header -->
		<div class="header">
			<div class="logo"><a href="#"><img src="images/logo.png" alt="" /></a></div>
			<div class="login">
				<div class="studentlogin">
					<!-- <h1>Student Login</h1>-->
					<div class="username">
						<!-- <p class="uname">Username:</p> -->
						<div class=""><!-- <input type="text" class="t_box" value="" /> --></div>
					</div>
					<div class="">
						<!-- <p class="uname">Password:</p> -->
						<div class=""><!-- <input type="password" class="t_box" value="" /> --></div>
					</div> 
					
				</div>
				
				<div class="logo1"><a href="#"><img src="images/logo1.png" alt="" /></a></div>
				<div style="text-align:right" >Welcome ,<?php print $_SESSION["u_name"];?>&nbsp;&nbsp;<a href="Logout.php">Log Out</a></div>
			</div>
			<div class="nav">
				<ul>
					<li><a href="Home.php" class="select" >Home</a></li>
					<li><a href="about-us.php">About Us</a></li>
					<li><a href="GmatPreparation.php">GMAT Preperation</a></li> 
					<li><a href="AdmissionConsulting.php">Admissions Consulting</a></li> 
					<li><a href="http://techbridge.co.in/forum/">MBA Forum</a></li> 
					<li><a href="contact-us.php">Contact Us</a></li>
				</ul>
			</div>
		</div>
		<!-- header -->
		<!-- middle -->

		<div class="middle">
		
		<a onclick="window.open('Resources.php','_self')" style="cursor: pointer;font-family: Verdana;font-size: 14px;float: right;text-decoration: underline;padding-right: 15px;">Our Resources</a>
		<br />
		<form id="frmProfile" action="savedata.php" method="post" >
		<div id="dhtmlgoodies_tabView2">
			<div id="section_1" class="dhtmlgoodies_aTab">
	<table cellpadding="0" cellspacing="0" align="center" width="35%" >
		
		<tr>
			<td colspan="2">&nbsp;
				
			</td>
		</tr> 
		
		<tr>
			<td colspan="2">&nbsp;
				
			</td>
		</tr> 
		
		<tr>
			<td colspan="2">&nbsp;
				
			</td>
		</tr> 
		
		<tr>
			<td width="130px" class="lblText">
				<strong>Name</strong>
			</td>
			<td>
				<input type="text" id="txtName" name="txtName"  class="inputgeneral" style="width:210px" value="<?php print $userdetails['fullname'];?>"/>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">&nbsp;
				
			</td>
		</tr>
	
		<tr>
			<td class="lblText" >
				<strong>Date Of Birth </strong>
			</td>
			<td>
				<input type="text" id="datepicker" name="txtDOB" value="<?php print $userdetails['userdob'];?>" class="inputgeneral" style="width:210px" />
			</td>
		</tr>
		
		<tr>
			<td colspan="2">&nbsp;
				
			</td>
		</tr>
	
		<tr>
			<td class="lblText" >
				<strong>Email Address</strong>
			</td>
			<td>
				<input type="text" id="txtEmail" name="txtEmail" value="<?php print $userdetails['useremail'];?>" class="inputgeneral"  style="width:210px" />
			</td>
		</tr>
		
		<tr>
			<td colspan="2">&nbsp;
				
			</td>
		</tr>
	
		<tr>
			<td class="lblText" >
				<strong>Verify Email Address</strong>
			</td>
			<td>
				<input type="text" id="txtVerifyEmail" name="txtVerifyEmail" value="<?php print $userdetails['useremail'];?>" class="inputgeneral" style="width:210px"/>
			</td>
		</tr> 
		
		<tr>
			<td colspan="2">&nbsp;
				
			</td>
		</tr> 
		
		<tr>
			<td colspan="2">
				<div class="cssbutton sample a">
					<input type="button" value="Continue" onclick="continue1('dhtmlgoodies_tabView2',1)"/>
				</div>
			</td>
		</tr> 
		
		<tr>
			<td colspan="2">&nbsp;
				
			</td>
		</tr> 
		
	</table>
</div>
			<div id="section_2" class="dhtmlgoodies_aTab">
	<table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" >
		
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td class="lblheader">
				<strong>Section 1 : Work Experience</strong>
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
	<?php 	
		$cntWorkHistory = count($objMyCass->ShowIndividualUserWorkHistoryDetails($_SESSION["user_id"]));
		$objWorkExperience = $objMyCass->ShowIndividualUserWorkHistoryDetails($_SESSION["user_id"]);
		$totalExperience = 0;
		foreach($objWorkExperience as &$value1)
		{
			$totalExperience += $value1["experience"];
		}
		$totalyear = floor($totalExperience/12);
		$totalmonth = $totalExperience%12;
		?>
		<tr>
			<td>  
					<label id="lbl_reg10" class="lblText" ><strong> Total Full Time Work Experience:&nbsp;&nbsp;&nbsp;&nbsp;
					Years</strong>&nbsp;&nbsp;</label>
				    	<label>
							<input type="text" id="txtYear" name="txtYear"  class="txt_boxsmall" value= "<?php print $totalyear; ?>" readonly/>
			          </label>
			            &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
			           <label class="lblText" > <strong>Months</strong>&nbsp;&nbsp;</label>
			            <label>
			        		<input type="text" id="txtMonth" name="txtMonth"  class="txt_boxsmall" value= "<?php print $totalmonth; ?>" readonly/>
			        </label>
			
			</td>
		</tr>
		
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		
		<tr>
			<td class="lblText" >
				<strong>Employment Details:</strong>
				&nbsp;
				
				<input type="button" id="btnAdd" class="frm_btn4" value="Add Another Employment Details" />
				<input type="button" id="btnDel" class="frm_btn4" value="Remove Employment Details" />
			</td>
		</tr>
		
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		
		
		<tr>
			<td width="100%">				
				<table cellpadding="0" cellspacing="0" width="100%"  >
					<tr>
						<td width="5%">&nbsp;
						
						</td>
						<td width="25%" class="lblText" >
						<strong>Company Name</strong>
						</td>
						<td width="20%" class="lblText" >
						<strong>Department</strong>
						</td>
						<td width="20%" class="lblText" >
						<strong>Designation</strong>
						</td>
						<td width="30%" class="lblText" >
						<strong>Years Worked</strong>
						</td>
					</tr>
					
					<tr>
						<td colspan="5">&nbsp;
							
							
						</td>
					</tr>
					
					<?php 
					
					if($cntWorkHistory>0)
					{
					$cnt1=1;
					foreach($objWorkExperience as &$value1)
					{
					?>
					
					<tr id="input<?php print $cnt1; ?>" class="clonedInput" >
						<td style="height:30px;" id="first" >
						<input type="text" id="txtid<?php print $cnt1; ?>" name="txtid[]" value="<?php print $cnt1; ?>." style="width:20px;" readonly="readonly" />
						</td>
						
						<td id="second" >
							<?php 
							$companyDetails = array(); 
							$companyDetails = $objMyCass->GetCompanyNames();	
							?>
							<select id="ddlCompany<?php print $cnt1; ?>" name="ddlCompany[]" class="inputgeneral" style="width:230px" >
							<option value ="" >-------</option>
							<?php 
							foreach($companyDetails as &$value)
							{
								if($value1["company"] == $value["id"])
								{
									$selected = "selected";
								}
								else
								{
									$selected="";
								}
							?>
							<option value ="<?php print $value["id"];?>" <?php print $selected; ?> ><?php print $value["company_name"];?></option>
							<?php } ?>							
							</select>
						</td>
						
						<td id="third" >
							<input type="text" id="txtDepartment<?php print $cnt1; ?>" name="txtDepartment[]" class="inputgeneral" value="<?php print $value1['department'] ?>"/>
						</td>
						
						<td id="fourth" >
						
						<?php 
							$designationdetails = array(); 
							$designationdetails = $objMyCass->GetDesignationRecords();	
							?>
							<select id="ddlDesignation<?php print $cnt1; ?>" name="ddlDesignation[]" class="inputgeneral" >
							<option value ="" >-------</option>
							<?php 
							foreach($designationdetails as &$value)
							{
								
							if($value1["designation"] == $value["id"])
								{
									$selected = "selected";
								}
								else
								{
									$selected="";
								}
							?>
							<option value ="<?php print $value["id"];?>" <?php print $selected; ?>><?php print $value["designation_title"];?></option>
							<?php } ?>							
							</select>
							
						</td>
						<td id="fifth" >
							<strong> 
							Years</strong>
						    <label>
							<input type="text" id="txtWorkYear<?php print $cnt1; ?>" name="txtWorkYear[]" class="inputgeneral" style="width:40px" value="<?php print floor($value1["experience"]/12); ?>" onkeypress="return isNumberKey(event)" maxlength="2" />
					          </label>
					            &nbsp; &nbsp;&nbsp;
					            <strong>Months</strong>&nbsp;&nbsp;
					            <label>
						        <input type="text" id="txtWorkMonth<?php print $cnt1; ?>" name="txtWorkMonth[]" class="inputgeneral" style="width:40px" value="<?php print $value1["experience"]%12; ?>" onkeypress="return isNumberKey(event)"  maxlength="2" />
					        </label>
						</td>
					</tr>
					<?php 
					$cnt1++;
					}
					}
					else
					{
					?>
					<tr id="input1" class="clonedInput" >
						<td style="height:30px;" id="first" >
						<input type="text" id="txtid1" name="txtid[]" value="1." style="width:20px;" readonly="readonly" />
						</td>
						
						<td id="second" >
							<?php 
							$companyDetails = array(); 
							$companyDetails = $objMyCass->GetCompanyNames();	
							?>
							<select id="ddlCompany1" name="ddlCompany[]" class="inputgeneral" style="width:230px" >
							<option value ="" >-------</option>
							<?php 
							foreach($companyDetails as &$value)
							{
							?>
							<option value ="<?php print $value["id"];?>" ><?php print $value["company_name"];?></option>
							<?php } ?>							
							</select>
						</td>
						
						<td id="third" >
							<input type="text" id="txtDepartment1" name="txtDepartment[]" class="inputgeneral" />
						</td>
						
						<td id="fourth" >
						
						<?php 
							$designationdetails = array(); 
							$designationdetails = $objMyCass->GetDesignationRecords();	
							?>
							<select id="ddlDesignation1" name="ddlDesignation[]" class="inputgeneral" >
							<option value ="" >-------</option>
							<?php 
							foreach($designationdetails as &$value)
							{
							?>
							<option value ="<?php print $value["id"];?>" ><?php print $value["designation_title"];?></option>
							<?php } ?>							
							</select>
							
						</td>
						<td id="fifth" >
							<strong> 
							Years</strong>
						    <label>
							<input type="text" id="txtWorkYear1" name="txtWorkYear[]" class="inputgeneral" style="width:40px" onkeypress="return isNumberKey(event)" maxlength="2" />
					          </label>
					            &nbsp; &nbsp;&nbsp;
					            <strong>Months</strong>&nbsp;&nbsp;
					            <label>
						        <input type="text" id="txtWorkMonth1" name="txtWorkMonth[]" class="inputgeneral" style="width:40px"  onkeypress="return isNumberKey(event)" maxlength="2" />
					        </label>
						</td>
					</tr>
					
					<?php } ?>
					
					<tr>
						<td colspan="5">&nbsp;
							
						</td>
					</tr> 
		
		<tr>
			
			<td colspan="4">
		
				<div class="cssbutton sample a">
					<input type="button" value="Continue" onclick="continue2('dhtmlgoodies_tabView2',2);" />
				</div>
				<div class="cssbutton sample a">
					<input type="button" value="Back" onclick="continue0('dhtmlgoodies_tabView2',0)"/>&nbsp;
				</div>
			</td>
			<td>&nbsp;
				
			</td>
		</tr> 
		
		<tr>
			<td colspan="5">&nbsp;
				
			</td>
		</tr> 
					
				</table>
			</td>
		</tr>
		
		
		
		
	</table>
</div>
			<div id="section_3" class="dhtmlgoodies_aTab">

		<table cellpadding="0" cellspacing="0" width="90%" align="center" >
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td class="lblheader">
				<strong>Section 2 : Education</strong>
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td>  
			<?php 	
				$cntEducation = count($objMyCass->ShowIndividualUserEducationDetails($_SESSION["user_id"]));
				$objEducation = $objMyCass->ShowIndividualUserEducationDetails($_SESSION["user_id"]);	
				foreach($objEducation as &$value2)
					{
						$heducation = 	$value2["highesteducation"];		
					}
			?>
			
					<label id="lbl_reg10" class="lblText"><strong> Highest level of education completed:&nbsp;&nbsp;&nbsp;&nbsp;
					</strong></label>
				    	<label>
							<?php 
							$educationdetails = array(); 
							$educationdetails = $objMyCass->GetEducationDetails();	
							?>
							<select id="ddlEducation" name="ddlEducation" class="inputgeneral" style="width:100px" >
							<option value ="" >-------</option>
							<?php 
							foreach($educationdetails as &$value)
							{
								if($heducation == $value["id"])
								{
									$selected="selected='selected'";
								}
								else
								{
									$selected = "";
								}
							?>
							<option value ="<?php print $value["id"];?>" <?php print $selected;?> ><?php print $value["education_title"];?></option>
							<?php } ?>							
							</select>
							
			          </label>
			            
			
			</td>
		</tr>
		
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		
		<tr>
			<td class="lblText">
				<strong>Education Details:</strong>
				&nbsp;
				<input type="button" id="btnAddEducation"  class="frm_btn4"  value="Add Another Education Details" />
				<input type="button" id="btnDelEducation"  class="frm_btn4"  value="Remove Education Details" />

			</td>
		</tr>
		
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		
		<tr>
			<td>
					<table cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="5%">&nbsp;
						
						</td>
						<td width="35%" class="lblText" >
						<strong>University</strong>
						</td>
						<td width="15%" class="lblText" >
						<strong>Year</strong>
						</td>
						<td width="20%" class="lblText" >
						<strong>Course</strong>
						</td>
						<td width="25%" class="lblText" >
						<strong>Academic Grade</strong>
						</td>
					</tr>
					
					<tr>
						<td colspan="5">&nbsp;
							
						</td>
					</tr>
					
					<?php 
					
					if($cntEducation>0){
					$cnt2 =0;
					foreach($objEducation as &$value2)
					{	
						$cnt2++;
						?>
					
					<tr id="education<?php print $cnt2; ?>" class="clonedInput1">
						<td style="height:30px;">
						<input type="text" id="txteducationid<?php print $cnt2; ?>" name="txteducationid[]" value="<?php print $cnt2; ?>." style="width:20px;" readonly="readonly" />
						</td>
						<td width="20%">
						
							<?php 
							$universitydetails = array(); 
							$universitydetails = $objMyCass->GetUniversityDetails();	
							?>
							<select id="ddlUniversity<?php print $cnt2; ?>" name="ddlUniversity[]" class="inputgeneral" style="width:220px" >
							<option value ="" >-------</option>
							<?php 
							foreach($universitydetails as &$value)
							{
								
								if($value2["university"]== $value["id"])
					              	{
					              		$selected="selected='selected'";
					              	}
					              	else
					              	{
					              		$selected = "";
					              	}
							?>
							<option value ="<?php print $value["id"];?>" <?php print $selected; ?> ><?php print $value["university_name"];?></option>
							<?php } ?>							
							</select>
							
						</td>
						<td width="20%">
						
							<select name="ddleducationyear[]" id="ddleducationyear<?php print $cnt2; ?>" class="inputgeneral">
							<option value ="" >-----</option>
					              <?php 
					              $cnt = 0;
					              for($i=1960;$i<=(date("Y")+10);$i++)
					              {
					              	if($value2["year"]== $i)
					              	{
					              		$selected="selected='selected'";
					              	}
					              	else
					              	{
					              		$selected = "";
					              	}
					              ?>
					              <option value="<?php print $i; ?>" <?php print $selected; ?>><?php print $i; ?></option>
					              <?php
									$cnt++;
					              }?>
					            </select>
							
						</td>
						<td width="20%">
						<input type="text" id="txtCourse<?php print $cnt2; ?>" name="txtCourse[]" class="inputgeneral" value="<?php print $value2["course"]  ?>" />
						</td>
						<td width="35%" >
						<label>
						<strong>Grade</strong>&nbsp;&nbsp;					
						<select name="ddlGrade[]" id="ddlGrade<?php print $cnt2; ?>" class="inputgeneral">
							<option value ="" >--</option>
					              <?php 
					              $cnt = 0;
					              for($i=0;$i<=10;$i++)
					              {
					              	
					              if($value2["grade"]== $cnt)
					              	{
					              		$selected="selected='selected'";
					              	}
					              	else
					              	{
					              		$selected = "";
					              	}
					              ?>
					              <option value="<?php print $cnt; ?>" <?php print $selected; ?>><?php print $i; ?></option>
					              <?php
									$cnt++;
					              }?>
					     </select>
						</label>
						</td>
					</tr>
					
					
					<?php
					}
					} else{?>
					
					<tr id="education1" class="clonedInput1">
						<td style="height:30px;">
						<input type="text" id="txteducationid1" name="txteducationid[]" value="1." style="width:20px;" readonly="readonly" />
						</td>
						<td width="20%">
						
							<?php 
							$universitydetails = array(); 
							$universitydetails = $objMyCass->GetUniversityDetails();	
							?>
							<select id="ddlUniversity1" name="ddlUniversity[]" class="inputgeneral" style="width:220px" >
							<option value ="" >-------</option>
							<?php 
							foreach($universitydetails as &$value)
							{
							?>
							<option value ="<?php print $value["id"];?>" ><?php print $value["university_name"];?></option>
							<?php } ?>							
							</select>
							
						</td>
						<td width="20%">
						
							<select name="ddleducationyear[]" id="ddleducationyear1" class="inputgeneral">
							<option value ="" >-----</option>
					              <?php 
					              $cnt = 0;
					              for($i=1960;$i<=(date("Y")+10);$i++)
					              {
					              ?>
					              <option value="<?php print $i; ?>"><?php print $i; ?></option>
					              <?php
									$cnt++;
					              }?>
					            </select>
							
						</td>
						<td width="20%">
						<input type="text" id="txtCourse1" name="txtCourse[]" class="inputgeneral" />
						</td>
						<td width="35%" >
						<label>
						<strong>Grade</strong>&nbsp;&nbsp;					
						<select name="ddlGrade[]" id="ddlGrade1" class="inputgeneral">
							<option value ="" >--</option>
					              <?php 
					              $cnt = 0;
					              for($i=0;$i<=10;$i++)
					              {
					              ?>
					              <option value="<?php print $cnt; ?>"><?php print $i; ?></option>
					              <?php
									$cnt++;
					              }?>
					     </select>
						</label>
						</td>
					</tr>
					
					<?php } ?>
					
					
					<tr>
						<td colspan="5">&nbsp;
							
						</td>
					</tr> 
								
					<tr>
						
					
						<td colspan="4">
							<div class="cssbutton sample a">
								<input type="button" value="Continue"  onclick="continue3('dhtmlgoodies_tabView2',3);"/>
							</div>
							<div class="cssbutton sample a">
								<input type="button" value="Back" onclick="continue1('dhtmlgoodies_tabView2',1)"/>&nbsp;
							</div>
						</td>
						
						<td colspan="1" >&nbsp;
							
						</td>
					</tr> 
					
					<tr>
						<td colspan="5">&nbsp;
							
						</td>
					</tr> 
					
					
					
					</table>
			</td>
		</tr>
</table>

</div>

<div id="section_4" class="dhtmlgoodies_aTab">

<table cellpadding="0" cellspacing="0" width="90%" align="center">

		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td class="lblheader">
				<strong>Section 3 : Additional Professional Qualification</strong>
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td>&nbsp;  
					
			
			</td>
		</tr>
		
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		
		<tr>
			<td class="lblText">
				<strong>Additional Professional Qualifications:</strong>
				&nbsp;
				<input type="button" id="btnAddAddProf" class="frm_btn4"  value="Add Another Additional Professional Details" />
				<input type="button" id="btnDelAddProf" class="frm_btn4"  value="Remove Additional Professional Details" />
			</td>
		</tr>
		
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		
		<tr>
			<td>
				<table cellpadding="0" cellspacing="0" width="20%" border="0">
					<tr>
						<td width="25%">&nbsp;
						
						</td>
						<td>&nbsp;
						
						</td>
					</tr>
					
					<?php 	
						$cntAddEducation = count($objMyCass->ShowIndividualUserAddEducationDetails($_SESSION["user_id"]));
						$objAddEducation = $objMyCass->ShowIndividualUserAddEducationDetails($_SESSION["user_id"]);	
							
						if($cntAddEducation>0)
						{
							$cnt3=0;
							foreach($objAddEducation as &$value3)
							{
							 $cnt3++;
					?>
					
					<tr id="addprof<?php print $cnt3; ?>" class="clonedInput2">
						<td style="height:30px;" id="firstaddprof">
						<input type="text" id="txtaddprofid<?php print $cnt3; ?>" name="txtaddprofid[]" value="<?php print $cnt3; ?>." style="width:20px;" readonly="readonly" />
						</td>
						<td align="right" id="secondaddprof">
						<?php 
							$educationdetails = array(); 
							$educationdetails = $objMyCass->GetEducationDetails();	
							?>
							<select id="ddlAdditionalEducation<?php print $cnt3; ?>" name="ddlAdditionalEducation[]" class="inputgeneral" style="width:100px" >
							<option value ="" >-----</option>
							<?php 
							foreach($educationdetails as &$value)
							{
								if($value3["addeducationdetails"]==$value["id"])
								{
									$selected = "selected='selected'";
								}
								else
								{
									$selected = "";
								}
							?>
							<option value ="<?php print $value["id"];?>" <?php print $selected; ?>><?php print $value["education_title"];?></option>
							<?php } ?>							
							</select>
						</td>
					</tr>
					
					
					<?php 
							}}else{?>
					
					<tr id="addprof1" class="clonedInput2">
						<td style="height:30px;" id="firstaddprof">
						<input type="text" id="txtaddprofid1" name="txtaddprofid[]" value="1." style="width:20px;" readonly="readonly" />
						</td>
						<td align="right" id="secondaddprof">
						<?php 
							$educationdetails = array(); 
							$educationdetails = $objMyCass->GetEducationDetails();	
							?>
							<select id="ddlAdditionalEducation1" name="ddlAdditionalEducation[]" class="inputgeneral" style="width:100px" >
							<option value ="" >-----</option>
							<?php 
							foreach($educationdetails as &$value)
							{
							?>
							<option value ="<?php print $value["id"];?>" ><?php print $value["education_title"];?></option>
							<?php } ?>							
							</select>
						</td>
					</tr>
					
					<?php } ?>
					
					<tr>
						<td colspan="2">&nbsp;
							
						</td>
					</tr> 
								
					<tr>
											
						<td colspan="2">
							<div class="cssbutton sample a">
								<input type="button" value="Continue"  onclick="continue4('dhtmlgoodies_tabView2',4);"/>
							</div>
							<div class="cssbutton sample a">
								<input type="button" value="Back" onclick="continue2('dhtmlgoodies_tabView2',2)"/>&nbsp;
							</div>
						</td>
					</tr> 
					
					<tr>
						<td colspan="2">&nbsp;
							
						</td>
					</tr> 
					
				</table>
			</td>
		</tr>
		
	</table>
</div>
		
<div id="section_5" class="dhtmlgoodies_aTab">

<table cellpadding="0" cellspacing="0" width="90%" align="center">

		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td class="lblheader">
				<strong>Section 4 : Extracurricular Activities</strong>
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
	
		
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		
		<tr>
			<td class="lblText">
				<strong>Extracurricular Activities:</strong>
				&nbsp;
				<input type="button" id="btnAddExtra" class="frm_btn4"  value="Add Another Extra Curricular Activities" />
				<input type="button" id="btnDelExtra"  class="frm_btn4"  value="Remove Extra Curricular Activities" />
			</td>
		</tr>
		
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		
		<tr>
			<td>
			<table cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="5%">&nbsp;
						
						</td>
						<td width="25%" class="lblText" >
						<strong>Organization</strong>
						</td>
						<td width="25%" class="lblText" >
						<strong>Designation</strong>
						</td>
						<td width="20%" class="lblText" >
						<strong>Key Project</strong>
						</td>
						<td class="lblText">
						<strong>Hours per week</strong>
						</td>
					</tr>
					
					<tr>
						<td colspan="5">&nbsp;
							
						</td>
					</tr>
					
				<?php 	
				$cntExtracurricular = count($objMyCass->ShowIndividualUserExtraCurricularDetails($_SESSION["user_id"]));
				$objExtracurricular = $objMyCass->ShowIndividualUserExtraCurricularDetails($_SESSION["user_id"]);	
				?>
				
				<?php 
				if($cntExtracurricular >0)
				{
					$cnt4 = 0;
					foreach($objExtracurricular as &$value4)
					{
						$cnt4++;
				?>
				
				<tr id="extra<?php print $cnt4; ?>" class="clonedInput3">
						<td style="height:30px;" id="firstextra">
						<input type="text" id="txtextraid<?php print $cnt4; ?>" name="txtextraid[]" value="<?php print $cnt4; ?>." style="width:20px;" readonly="readonly" />
						</td>
						<td id="secondextra">
							<input type="text" id="txtOrganization<?php print $cnt4; ?>" name="txtOrganization[]" class="inputgeneral" value ="<?php print $value4["organisation"]; ?>" />
						</td>
						<td id="thirdextra">
						<?php 
							$designationdetails = array(); 
							$designationdetails = $objMyCass->GetDesignationRecords();	
							?>
							<select id="ddldesign<?php print $cnt4; ?>" name="ddldesign[]" class="inputgeneral" >
							<option value ="" >-----</option>
							<?php 
							foreach($designationdetails as &$value)
							{
								
								if($value4["designation"] == $value["id"])
								{
									$selected = "selected='selected'";
								}
								else
								{
									$selected = "";
								}
							?>
							<option value ="<?php print $value["id"];?>" <?php print $selected; ?>><?php print $value["designation_title"];?></option>
							<?php } ?>							
							</select>
						</td>
						<td id="fourthextra">
							<input type="text" id="txtKeyProject<?php print $cnt4; ?>" name="txtKeyProject[]" class="inputgeneral" value ="<?php print $value4["key_project"]; ?>" />
						</td>
						<td id="fifthextra">
						   <input type="text" id="txtHourPerWeek<?php print $cnt4; ?>" name="txtHourPerWeek[]" class="inputgeneral" style="width:60px"  value ="<?php print $value4["hours_week"]; ?>" onkeypress="return isNumberKey(event)"  maxlength="2"  />
						</td>
					</tr>
				
				
				<?php
					} } else {?>
					
					<tr id="extra1" class="clonedInput3">
						<td style="height:30px;" id="firstextra">
						<input type="text" id="txtextraid1" name="txtextraid[]" value="1." style="width:20px;" readonly="readonly" />
						</td>
						<td id="secondextra">
							<input type="text" id="txtOrganization1" name="txtOrganization[]" class="inputgeneral" />
						</td>
						<td id="thirdextra">
						<?php 
							$designationdetails = array(); 
							$designationdetails = $objMyCass->GetDesignationRecords();	
							?>
							<select id="ddldesign1" name="ddldesign[]" class="inputgeneral" >
							<option value ="" >-----</option>
							<?php 
							foreach($designationdetails as &$value)
							{
							?>
							<option value ="<?php print $value["id"];?>" ><?php print $value["designation_title"];?></option>
							<?php } ?>							
							</select>
						</td>
						<td id="fourthextra">
							<input type="text" id="txtKeyProject1" name="txtKeyProject[]" class="inputgeneral" />
						</td>
						<td id="fifthextra">
						   <input type="text" id="txtHourPerWeek1" name="txtHourPerWeek[]" class="inputgeneral" style="width:60px"  onkeypress="return isNumberKey(event)"  maxlength="2" />
						</td>
					</tr>
					
					<?php }?>
					
					<tr>
						<td colspan="5">&nbsp;
							
						</td>
					</tr> 
								
					<tr>
											
						<td colspan="4">
							<div class="cssbutton sample a">
								<input type="button" value="Continue"  onclick="continue5('dhtmlgoodies_tabView2',5);"/>
							</div>
							<div class="cssbutton sample a">
								<input type="button" value="Back" onclick="continue3('dhtmlgoodies_tabView2',3)"/>&nbsp;
							</div>
						</td>
						
						<td colspan="1">&nbsp;
							
						</td>
					</tr> 
					
					<tr>
						<td colspan="5">&nbsp;
							
						</td>
					</tr> 
					
				</table>
			</td>
		</tr>
	</table>
	
</div>
<div id="section_6"  class="dhtmlgoodies_aTab">
<table cellpadding="0" cellspacing="0" width="90%" align="center">
	<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		<tr>
			<td class="lblheader">
				<strong>Section 5 : GMAT Score</strong>
			</td>
		</tr>
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
			
		<tr>
			<td>&nbsp;
				
			</td>
		</tr>
		
		<?php  
			$gmatdetails = $objMyCass->ShowIndividualUserGMATDetails($_SESSION["user_id"]);	
		?>
		
		<tr>
			<td>
				<table cellpadding="0" cellspacing="0" width="60%" border="0">
				<tr>
				<td colspan="2" class="lblText">
				<strong>Have you already taken the GMAT Exam?</strong>
				</td>
				</tr>
				
				<tr>
				<td width="70%" style="height:30px;" class="lblText">
				<strong>If yes, what was the last score you achieved (within last 5 years) : </strong>
				</td>
				<td>
				<input name="stName2" type="text" id="stName2" class="inputgeneral" style="width:60px" value="<?php print $gmatdetails["score"]; ?>" onkeypress="return isNumberKey(event)"  maxlength="3"  />
				</td>
				</tr>
				
				<tr>
				<td class="lblText">
				<strong>If no, what are you reasonably expecting to score: </strong>
				</td>
				<td>
				<input name="stName4" type="text" id="stName4" class="inputgeneral" style="width:60px" value="<?php print $gmatdetails["expected_score"]; ?>" onkeypress="return isNumberKey(event)"  maxlength="3"  />
				</td>
				</tr>
				
				<tr>
						<td colspan="2">&nbsp;
							
						</td>
					</tr> 
								
					<tr>
											
						<td>
							<div class="cssbutton sample a">
								<input type="submit" value="Save"  />
							</div>
							<div class="cssbutton sample a">
								<input type="button" value="Back" onclick="continue4('dhtmlgoodies_tabView2',4)"/>&nbsp;
							</div>
						</td>
						<td>&nbsp;
						</td>
					</tr> 
					
					<tr>
						<td colspan="2">&nbsp;
							
						</td>
					</tr> 
				
				</table>
			</td>
		</tr>
		
		
		
	</table>		

</div>
			
		</div>
			<div style="height:50px;">&nbsp;</div>
		
        	<div class="bar"><img src="images/ftopbg.png" alt=""/></div>
			</form>
			</div>
		<!-- /middle -->
		<!-- footer -->
			<div class="footer">
				<ul>
					<li><a href="Home.php">Home</a></li>
					<li>|</li>
					<li><a href="about-us.php">About Us</a></li>
					<li>|</li>
					<li><a href="GmatPreparation.php">GMAT Preperation</a></li>
					<li>|</li>
					<li><a href="AdmissionConsulting.php">Admissions Consulting</a></li>
					<li>|</li>
					<li><a href="http://topmbaconsultant.com/forum/">MBA Blog</a></li>
					<li>|</li>
					<li><a href="contact-us.php">Contact Us</a></li>
				</ul>
			</div>
		<!-- /footer -->
	</div>
</div>
<!-- / container -->
<script type="text/javascript">
initTabs('dhtmlgoodies_tabView2',Array('Personal','Work Experience','Education','Additional Prof. Qualification','Extra Curricular','GMAT Score'),0,970,400,Array(false,false,false,false,false,false,false));
</script>

<script type="text/javascript">
function continue0(val,id)
{
	showTab(val,id);
}
function continue1(val,id)
{
	showTab(val,id);
}
function continue2(val,id)
{
	showTab(val,id);
}
function continue3(val,id)
{
	showTab(val,id);
}
function continue4(val,id)
{
	showTab(val,id);
}
function continue5(val,id)
{
	showTab(val,id);
}


/******** Work Experience  ********/

$('#btnAdd').click(function() {

var num     = $('.clonedInput').length; // how many "duplicatable" input fields we currently have
var newNum  = new Number(num + 1);      // the numeric ID of the new input field being added

// create the new element via clone(), and manipulate it's ID using newNum value

var newElem = $('#input' + num).clone().attr('id', 'input' + newNum);

// manipulate the name/id values of the input inside the new element
var trname = "#input"+newNum;

 newElem.find("#first").children().attr('id', 'name' + newNum).attr('name', 'txtid[]').attr('value',newNum+".");
 newElem.find("#second").children().attr('id', 'ddlCompany' + newNum).attr('name', 'ddlCompany[]').attr('value',"");
 newElem.find("#third").children().attr('id', 'txtDepartment' + newNum).attr('name', 'txtDepartment[]').attr('value',"");
 newElem.find("#fourth").children().attr('id', 'ddlDesignation' + newNum).attr('name', 'ddlDesignation[]').attr('value',"");
 newElem.find("#fifth").children(":first").attr('id', 'txtWorkYear' + newNum).attr('name', 'txtWorkYear[]').attr('value',"");
 newElem.find("#fifth").children(":last").attr('id', 'txtWorkMonth' + newNum).attr('name', 'txtWorkMonth[]').attr('value',""); 
// insert the new element after the last "duplicatable" input field

$('#input' + num).after(newElem);

// enable the "remove" button

$('#btnDel').attr('disabled','');

// business rule: you can only add 5 names

if (newNum == 5)

$('#btnAdd').attr('disabled','disabled');

});

$('#btnDel').click(function() {

var num = $('.clonedInput').length; // how many "duplicatable" input fields we currently have

$('#input' + num).remove();     // remove the last element

// enable the "add" button

$('#btnAdd').attr('disabled','');

// if only one element remains, disable the "remove" button

if (num-1 == 1)

$('#btnDel').attr('disabled','disabled');

});


$('#btnDel').attr('disabled','disabled');


/*********************************/


/******** Education  ********/

$('#btnAddEducation').click(function() {

var num     = $('.clonedInput1').length; // how many "duplicatable" input fields we currently have
var newNum  = new Number(num + 1);      // the numeric ID of the new input field being added

// create the new element via clone(), and manipulate it's ID using newNum value

var newElem = $('#education' + num).clone().attr('id', 'education' + newNum);

// manipulate the name/id values of the input inside the new element
var trname = "#education"+newNum;

 newElem.find("#firsteducation").children().attr('id', 'txteducationid' + newNum).attr('name', 'txteducationid[]').attr('value',newNum+".");
 newElem.find("#secondeducation").children().attr('id', 'ddlUniversity' + newNum).attr('name', 'ddlUniversity[]').attr('value',"");
 newElem.find("#thirdeducation").children().attr('id', 'ddleducationyear' + newNum).attr('name', 'ddleducationyear[]').attr('value',"");
 newElem.find("#fourtheducation").children().attr('id', 'txtCourse' + newNum).attr('name', 'txtCourse[]').attr('value',"");
 newElem.find("#fiftheducation").children(":last").attr('id', 'ddlGrade' + newNum).attr('name', 'ddlGrade[]').attr('value',"");
 
// insert the new element after the last "duplicatable" input field

$('#education' + num).after(newElem);

// enable the "remove" button

$('#btnDelEducation').attr('disabled','');

// business rule: you can only add 5 names

if (newNum == 5)

$('#btnAddEducation').attr('disabled','disabled');

});

$('#btnDelEducation').click(function() {

var num = $('.clonedInput1').length; // how many "duplicatable" input fields we currently have

$('#education' + num).remove();     // remove the last element

// enable the "add" button

$('#btnAddEducation').attr('disabled','');

// if only one element remains, disable the "remove" button

if (num-1 == 1)

$('#btnDelEducation').attr('disabled','disabled');

});


$('#btnDelEducation').attr('disabled','disabled');


/*********************************/


/******** Additional Professional Qualification  ********/

$('#btnAddAddProf').click(function() {

var num     = $('.clonedInput2').length; // how many "duplicatable" input fields we currently have
var newNum  = new Number(num + 1);      // the numeric ID of the new input field being added

// create the new element via clone(), and manipulate it's ID using newNum value

var newElem = $('#addprof' + num).clone().attr('id', 'addprof' + newNum);

// manipulate the name/id values of the input inside the new element
var trname = "#addprof"+newNum;

 newElem.find("#firstaddprof").children().attr('id', 'txtaddprofid' + newNum).attr('name', 'txtaddprofid[]').attr('value',newNum+".");
 newElem.find("#secondaddprof").children().attr('id', 'ddlAdditionalEducation' + newNum).attr('name', 'ddlAdditionalEducation[]').attr('value',"");
 
// insert the new element after the last "duplicatable" input field

$('#addprof' + num).after(newElem);

// enable the "remove" button

$('#btnDelAddProf').attr('disabled','');

// business rule: you can only add 5 names

if (newNum == 5)

$('#btnAddAddProf').attr('disabled','disabled');

});

$('#btnDelAddProf').click(function() {

var num = $('.clonedInput2').length; // how many "duplicatable" input fields we currently have

$('#addprof' + num).remove();     // remove the last element

// enable the "add" button

$('#btnAddAddProf').attr('disabled','');

// if only one element remains, disable the "remove" button

if (num-1 == 1)

$('#btnDelAddProf').attr('disabled','disabled');

});


$('#btnDelAddProf').attr('disabled','disabled');


/*********************************/


/******** Extracurricular Activities  ********/

$('#btnAddExtra').click(function() {

var num     = $('.clonedInput3').length; // how many "duplicatable" input fields we currently have
var newNum  = new Number(num + 1);      // the numeric ID of the new input field being added

// create the new element via clone(), and manipulate it's ID using newNum value

var newElem = $('#extra' + num).clone().attr('id', 'extra' + newNum);

// manipulate the name/id values of the input inside the new element
var trname = "#extra"+newNum;

 newElem.find("#firstextra").children().attr('id', 'txtextraid' + newNum).attr('name', 'txtextraid[]').attr('value',newNum+".");
 newElem.find("#secondextra").children().attr('id', 'txtOrganization' + newNum).attr('name', 'txtOrganization[]').attr('value',"");
 newElem.find("#thirdextra").children().attr('id', 'ddldesign' + newNum).attr('name', 'ddldesign[]').attr('value',"");
 newElem.find("#fourthextra").children().attr('id', 'txtKeyProject' + newNum).attr('name', 'txtKeyProject[]').attr('value',"");
 newElem.find("#fifthextra").children().attr('id', 'txtHourPerWeek' + newNum).attr('name', 'txtHourPerWeek[]').attr('value',"");
 
// insert the new element after the last "duplicatable" input field

$('#extra' + num).after(newElem);

// enable the "remove" button

$('#btnDelExtra').attr('disabled','');

// business rule: you can only add 5 names

if (newNum == 5)

$('#btnAddExtra').attr('disabled','disabled');

});

$('#btnDelExtra').click(function() {

var num = $('.clonedInput3').length; // how many "duplicatable" input fields we currently have

$('#extra' + num).remove();     // remove the last element

// enable the "add" button

$('#btnAddExtra').attr('disabled','');

// if only one element remains, disable the "remove" button

if (num-1 == 1)

$('#btnDelExtra').attr('disabled','disabled');

});


$('#btnDelExtra').attr('disabled','disabled');


/*********************************/

  function isNumberKey(evt)
      {
         var charCode = (evt.which) ? evt.which : event.keyCode;
         if (charCode > 31 && (charCode < 48 || charCode > 57))
            return false;

         return true;
      }


var cnt1 = "<?php print ($cnt1-1); ?>";
var cnt2 = "<?php print ($cnt2); ?>";
var cnt3 = "<?php print ($cnt3); ?>";
var cnt4 = "<?php print ($cnt4); ?>";
if((cnt1 > 0))
{
	$('#btnDel').attr('disabled','');
}
if((cnt1 <5))
{
	$('#btnAdd').attr('disabled','');
}
else
{
	$('#btnAdd').attr('disabled','disabled');
}

if((cnt2 > 0))
{
	$('#btnDelEducation').attr('disabled','');
}
if((cnt2 <5))
{
	$('#btnAddEducation').attr('disabled','');
}
else
{
	$('#btnAddEducation').attr('disabled','disabled');
}

if((cnt3 > 0))
{
	$('#btnDelAddProf').attr('disabled','');
}
if((cnt3 <5))
{
	$('#btnAddAddProf').attr('disabled','');
}
else
{
	$('#btnAddAddProf').attr('disabled','disabled');
}

if((cnt4 > 0))
{
	$('#btnDelExtra').attr('disabled','');
}
if((cnt4 <5))
{
	$('#btnAddExtra').attr('disabled','');
}
else
{
	$('#btnAddExtra').attr('disabled','disabled');
}
</script>
 </body>
</html>
